#pragma once
#include <OSProc.h>
#include <IPC/streamIO.h>

  struct _dlg
  {
    slnode* delegated;
  };
_ptlong DelegateOnThread(_tcb* delegated,_tcb* delegator);		 
_ptlong DelegateOnFile(_tcb* delegated, _fstr delegator);
_ptlong RunDelegatedThread(_tcb* dyingthread);
